package com.itheima.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.Map;

@Controller
@RequestMapping("/show")
@Slf4j
public class ShowController {
    @RequestMapping("/data")
    @ResponseBody
    public void showData(@RequestParam Map<String, Object> map) {
        log.warn("服务器收到数据: ");
        map.forEach((k, v) -> {
            log.warn(k + " : " + v);
        });
    }
}
